package com.zhiyou100.pra;

//二胡  继承乐器类
public class Erhu extends Instrument {
    public Erhu() {
    }

    public Erhu(String name) {
        super(name);
    }

    //重写父类的makeSound
    @Override
    public void makeSound() {
        System.out.println("你选择" + getName() + "演奏");
    }
}
